<?php

	require('./inc/common.php');
	$id = intval($_GET['id']);
	$sql = "SELECT * FROM  `zj_jigou` WHERE jigou_id = ".$id." LIMIT 1";
	$result = mysql_query($sql);
    $jigou = mysql_fetch_assoc($result);

    function get_jigou_ico_url($jigou_id, $ico_type, $ico_path="logo"){
		return "http://www.izaojiao.com/data/$ico_path/$ico_type/".($jigou_id % 10)."/$jigou_id.jpg";
	}

	if (false == $jigou) {
		die('机构信息不存在');
	}
?>
<div id="map2_info_wrapper">
	<div id="map2_propertys">
		<div id="map2_info_sort">
			<div class="sort_buttons"></div>
			<span class="span_propnum">
		    地址：<?=$jigou['jigou_address']?>
            <br />坐标：<?=$jigou['jigou_map_lng'].",".$jigou['jigou_map_lat']?>
		</div>
	</div>
</div>
<div id="map2_filters">
	<img class="map2_img" src="http://www.izaojiao.com/data/logo/2/<?=$jigou['jigou_id'] % 10 .'/'.$jigou['jigou_id']?>.jpg">
	<ul class="map2_filters_morelink">
		<li><a href="jigou/<?=$jigou['jigou_id']?>/reviews" class="map2_comm_moreinfo" style="display:block;float:right;"  target="_blank">大家点评</a></li>
		<li><a href="jigou/<?=$jigou['jigou_id']?>/photos" class="map2_comm_fresh" style="display:block;float:right;"  target="_blank">查看照片</a></li>
        <li><a href="jigou/<?=$jigou['jigou_id']?>/shiting" class="map2_comm_brokerlist" style="display:block;float:right;" target="_blank">免费试听</a></li>
	</ul>
</div>